package com.lie.prepare.multi_thread.even_checker;

/**
 * Created by lie on 2018/4/9.
 */
public class Test {
    public static void main(String[] args){

//        test1();
        synchronizedTest();
    }

    private static void synchronizedTest() {
        SynchronizedEvenGenerator generator = new SynchronizedEvenGenerator();
        EvenChecker.test(generator, 10);
    }

    private static void test1() {
        //        ! 错误，595并不是偶数
//        ! 错误，597并不是偶数
        IntGenerator generator = new EvenGenerator();
        EvenChecker.test(generator, 10);
    }
}
